// 自动生成模板SmsHomeSubject
package biz

import "github.com/go-kratos/kratos/v2/log"

// smsHomeSubject表 结构体  SmsHomeSubject
type SmsHomeSubject struct {
	Id       *int    `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`             //id
	Name     *string `json:"name" form:"name" gorm:"comment:专题名字;column:name;size:200;"`               //专题名字
	Title    *string `json:"title" form:"title" gorm:"comment:专题标题;column:title;size:255;"`            //专题标题
	SubTitle *string `json:"subTitle" form:"subTitle" gorm:"comment:专题副标题;column:sub_title;size:255;"` //专题副标题
	Status   *bool   `json:"status" form:"status" gorm:"comment:显示状态;column:status;"`                  //显示状态
	Url      *string `json:"url" form:"url" gorm:"comment:详情连接;column:url;size:500;"`                  //详情连接
	Sort     *int    `json:"sort" form:"sort" gorm:"comment:排序;column:sort;size:10;"`                  //排序
	Img      *string `json:"img" form:"img" gorm:"comment:专题图片地址;column:img;size:500;"`                //专题图片地址
}

// TableName smsHomeSubject表 SmsHomeSubject自定义表名 sms_home_subject
func (SmsHomeSubject) TableName() string {
	return "sms_home_subject"
}

type SmsHomeSubjectRepo interface {
}

type SmsHomeSubjectUsecase struct {
	repo SmsHomeSubjectRepo
	log  *log.Helper
}

func NewSmsHomeSubjectUsecase(repo GreeterRepo, logger log.Logger) *SmsHomeSubjectUsecase {
	return &SmsHomeSubjectUsecase{repo: repo, log: log.NewHelper(logger)}
}
